package com.education.wisdom.service.impl;

import com.education.common.utils.Convert;
import com.education.wisdom.mapper.IosdicMapper;
import com.education.wisdom.pojo.Iosdic;
import com.education.wisdom.service.IIosdicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * IOS金额字典 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-09
 */
@Service
public class IosdicServiceImpl implements IIosdicService
{
	@Autowired
	private IosdicMapper iosdicMapper;

	/**
     * 查询IOS金额字典信息
     * 
     * @param id IOS金额字典ID
     * @return IOS金额字典信息
     */
    @Override
	public Iosdic selectIosdicById(Integer id)
	{
	    return iosdicMapper.selectIosdicById(id);
	}
	
	/**
     * 查询IOS金额字典列表
     * 
     * @param iosdic IOS金额字典信息
     * @return IOS金额字典集合
     */
	@Override
	public List<Iosdic> selectIosdicList(Iosdic iosdic)
	{
	    return iosdicMapper.selectIosdicList(iosdic);
	}
	
    /**
     * 新增IOS金额字典
     * 
     * @param iosdic IOS金额字典信息
     * @return 结果
     */
	@Override
	public int insertIosdic(Iosdic iosdic)
	{
	    return iosdicMapper.insertIosdic(iosdic);
	}
	
	/**
     * 修改IOS金额字典
     * 
     * @param iosdic IOS金额字典信息
     * @return 结果
     */
	@Override
	public int updateIosdic(Iosdic iosdic)
	{
	    return iosdicMapper.updateIosdic(iosdic);
	}

	/**
     * 删除IOS金额字典对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteIosdicByIds(String ids)
	{
		return iosdicMapper.deleteIosdicByIds(Convert.toStrArray(ids));
	}
	
}
